package com.sywb.chuangyebao.bean;

import android.text.TextUtils;

import com.sywb.chuangyebao.utils.DateTimeUtils;

public class IncomeExpenditureBean {

    private String channel;//类型1=投稿图片收入，2=投稿视频收入，3=投稿文章收入) 都是稿费 4=支付宝提现 5=银行卡(暂时不用) 6 微信提现
    private String category;//0 收入 1  支出
    private double amt;//金额
    private long create_time;//时间
    private String status;//状态 (1=待审核 2=待打款) 交易中 3=交易成功 4=交易失败

    private String dateTime;

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public double getAmt() {
        return amt;
    }

    public void setAmt(double amt) {
        this.amt = amt;
    }

    public long getCreate_time() {
        return create_time;
    }

    public void setCreate_time(long create_time) {
        this.create_time = create_time;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDateTime() {
        return dateTime;
    }

    public void setDateTime(String dateTime) {
        this.dateTime = dateTime;
    }

    public void getDateOrTime(){
        if (!TextUtils.isEmpty(String.valueOf(create_time))){
            String time = DateTimeUtils.getChatTime(create_time);
            setDateTime(time);
        }
    }
}
